import request from '@/utils/request'

export default {
  getHospSetList(current, limit, searchObj) {
    return request({
      url: `/admin/hosp/hospSet/findPageHospSet/${current}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },
  deleteById(id){
    return request({
      url: `/admin/hosp/hospSet/delete/${id}`,
      method: 'delete'
    })
  },
  deleteBatch(ids){
    return request({
      url: '/admin/hosp/hospSet/batchRemove',
      method: 'delete',
      data:ids
    })
  },
  //锁定和取消锁定
  lockHospSet(id,status) {
    return request ({
      url: `/admin/hosp/hospSet/lock/${id}/${status}`,
      method: 'put'
    })
  },
  saveHospSet(hospSet){
    return request({
      url:'/admin/hosp/hospSet/saveHospSet',
      method: 'post',
      data: hospSet
    })
  },
  getHospSet(id) {
    return request ({
      url: `/admin/hosp/hospSet/findById/${id}`,
      method: 'get'
    })
  },
  //修改医院设置
  updateHospSet(hospSet) {
    return request ({
      url: `/admin/hosp/hospSet/updateHospSet`,
      method: 'post',
      data: hospSet
    })
  }


}
